package com.itlong.cloud.property.service;

import com.itlong.cloud.POJO.DTO.app.APPServiceTemporaryCarListPageDTO;
import com.itlong.cloud.POJO.DTO.operate.OperateFixedVehiclePageDTO;
import com.itlong.cloud.POJO.DTO.property.CarIssueDTO;
import com.itlong.cloud.POJO.DTO.property.PropertyCarOpenMonthCardDTO;
import com.itlong.cloud.POJO.DTO.property.PropertyCarRenewMonthCardDTO;
import com.itlong.cloud.POJO.VO.app.AppServiceTemporaryCarListVO;
import com.itlong.cloud.POJO.VO.operate.OperateFixedVehicleInfoVO;
import com.itlong.cloud.utils.page.Page;

/**
 * <desc>
 *      物业管理-车辆的月卡管理服务接口
 * </desc>
 *
 * @createDate 2018/11/05
 */
public interface IPropertyCarMonthCardService {

    /**
     * <desc>
     *      车辆开通或修改月卡
     * </desc>
     *
     * @param propertyCarOpenMonthCardDTO 月卡开通、修改DTO
     * @return 受影响行数
     * @throws Exception
     * @author wangzhi
     * @createDate 2018/11/05
     */
    Integer openMonthCard(PropertyCarOpenMonthCardDTO propertyCarOpenMonthCardDTO) throws Exception;

    /**
     * <desc>
     *      车辆月卡续费
     * </desc>
     *
     * @param propertyCarRenewMonthCardDTO 月卡续费DTO
     * @return 车牌凭证发行DTO
     * @author wangzhi
     * @createDate 2018/11/05
     */
    CarIssueDTO renewMonthCard(PropertyCarRenewMonthCardDTO propertyCarRenewMonthCardDTO, String mark) throws Exception;

    /**
     * <desc>
     *      固定车辆信息分页查询
     * </desc>
     *
     * @param operateFixedVehiclePageDTO 分页查询参数
     * @return
     * @author Qiang.S
     * @createDate 2018/11/05
     */
    Page<OperateFixedVehicleInfoVO> getFixedVehiclePage(OperateFixedVehiclePageDTO operateFixedVehiclePageDTO) throws Exception;

    /**
     * <desc>
     *      获取临时车辆列表
     * </desc>
     *
     * @param appServiceTemporaryCarListPageDTO
     * @return
     * @author Qiang.S
     * @createDate 2018/11/07
     */
    Page<AppServiceTemporaryCarListVO> temporaryCarList(APPServiceTemporaryCarListPageDTO appServiceTemporaryCarListPageDTO) throws Exception;

    /**
     * <desc>
     *      删除临时车辆通行记录
     * </desc>
     *
     * @param plateNumber 车牌
     * @param userId 用户编号
     * @return
     * @author Qiang.S
     * @createDate 2018/11/07
     */
    Integer deleteTemporaryCar(String plateNumber, String userId) throws Exception;

    /**
     * <desc>
     *      清除临时车辆列表
     * </desc>
     *
     * @param userId 用户编号
     * @return 受影响行数
     * @author wangzhi
     * @createDate 2019/06/25
     */
    Integer deleteAllTemporaryCar(String userId) throws Exception;
}
